package com.xzy.service;

import com.xzy.mapper.ApplyAuthorMapper;
import com.xzy.pojo.ApplyAuthor;
import org.omg.PortableServer.THREAD_POLICY_ID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgreeAuthorServiceImpl implements ApplyAuthorService {
    @Autowired
    private ApplyAuthorMapper agreeAuthorMapper;
    @Override
    public int insertAgreeAuthor(String username) {
        return this.agreeAuthorMapper.insertAgreeAuthor(username);
    }

    @Override
    public int updateAgreeAuthorYes(String username) {
        return this.agreeAuthorMapper.updateAgreeAuthorYes(username);
    }

    @Override
    public int updateAgreeAuthorNo(String username) {
        return this.agreeAuthorMapper.updateAgreeAuthorNo(username);
    }

    @Override
    public List<ApplyAuthor> selectApplyAuthorPage(int begin, int size) {
        return this.agreeAuthorMapper.selectApplyAuthorPage(begin, size);
    }
}
